from flask_migrate import Migrate, MigrateCommand
from flask_script import Server, Manager
#from flask_apidoc.commands import GenerateApiDoc
from flask_session import Session
from app import create_app
app_= create_app('development')
app_.app_context().push()

manager = Manager(app_)
from app import db
migrate = Migrate(app=app_,db=db)
manager.add_command('db',MigrateCommand)
server = Server(host="0.0.0.0", port=5000)
manager.add_command("runserver", server)
session=Session(app)

if __name__ == '__main__':
    manager.run()
